import { gstyRequest } from '../'
//查看预报断面对应计算单元
export async function getForecastSectionUnit(params) {
  return gstyRequest.get({
    url: '/mxpt/skby/getForecastSectionUnit',
    showLoading: true,
    params
  })
}
//查看单元小流域
export async function getUnitWatas(params) {
  return gstyRequest.get({
    url: '/mxpt/skby/getUnitWatas',
    showLoading: true,
    params
  })
}
//查看小流域对应雨量站
export async function getUnitWataPPs(params) {
  return gstyRequest.get({
    url: '/mxpt/skby/getUnitWataPPs',
    showLoading: true,
    params
  })
}
//查看河道演进参数
export async function getXajRiverParams(params) {
  return gstyRequest.get({
    url: '/mxpt/xaj/getXajRiverParams',
    showLoading: true,
    params
  })
}
//查看断面相关信息
export async function getXajForecastSectionInfo(params) {
  return gstyRequest.get({
    url: '/mxpt/xaj/getXajForecastSectionInfo',
    showLoading: true,
    params
  })
}
//查看新安江计算单元雨量站
export async function getXajUnitPP(params) {
  return gstyRequest.get({
    url: '/mxpt/xaj/getXajUnitPP',
    showLoading: true,
    params
  })
}

//==================新的更改==================
//公用=======
//查询站点
export async function getSiteList(params) {
  return gstyRequest.get({
    url: '/model/base/site/list',
    showLoading: true,
    params
  })
}
//查询预报断面结构树
export async function getZone(params) {
  return gstyRequest.get({
    url: '/model/base/zone/list',
    showLoading: true,
    params
  })
}
//查询预报断面结构树
export async function getSectionTree(params) {
  return gstyRequest.get({
    url: '/base/section/tree',
    showLoading: true,
    params
  })
}
//查询预报断面信息
export async function getSectionInfo(params) {
  return gstyRequest.get({
    url: '/base/section/infos',
    showLoading: true,
    params
  })
}

//基本配置=========
//添加站点映射关系
export async function addSiteMap(data) {
  return gstyRequest.post({
    url: '/base/section/addSiteMap',
    showLoading: true,
    data
  })
}
//修改站点映射关系
export async function setSiteMap(data) {
  return gstyRequest.post({
    url: '/base/section/modifySiteMap',
    showLoading: true,
    data
  })
}
//添加河道映射关系
export async function addRiverMap(data) {
  return gstyRequest.post({
    url: '/base/section/addRiverMap',
    showLoading: true,
    data
  })
}
//修改河道映射关系
export async function editRiverMap(data) {
  return gstyRequest.post({
    url: '/base/section/modifyRiverMap',
    showLoading: true,
    data
  })
}
//导入预报断面
export async function importYbdm(data) {
  return gstyRequest.post({
    url: '/base/section/import',
    showLoading: true,
    data
  })
}

//新安江=============
//查询新安江 计算单元
export async function getXajInfo(params) {
  return gstyRequest.get({
    url: '/model/configure/params/xaj/calUnits',
    showLoading: true,
    params
  })
}
//新安江参数方案下拉框绑定
export async function getXajParamSchemes(params) {
  return gstyRequest.get({
    url: '/model/configure/params/xaj/paramSchemes',
    showLoading: true,
    params
  })
}
//查询预报断面的演进河道拓扑
export async function getXajEvolTopology(params) {
  return gstyRequest.get({
    url: '/model/configure/params/xaj/evolTopology',
    showLoading: true,
    params
  })
}
//查询预报断面参数配置信息
export async function getXajParamsDetail(params) {
  return gstyRequest.get({
    url: '/model/configure/params/xaj/paramsDetail',
    showLoading: true,
    params
  })
}
//查询预报断面计算单元的雨量站
export async function getXajRainSites(params) {
  return gstyRequest.get({
    url: '/model/configure/params/xaj/calUnitRainSites',
    showLoading: true,
    params
  })
}
//新建配置
export async function createConfig(data) {
  return gstyRequest.post({
    url: '/model/configure/params/xaj/save',
    showLoading: true,
    data
  })
}
//删除配置
export async function delConfig(data) {
  return gstyRequest.post({
    url: '/model/configure/params/xaj/delete',
    showLoading: true,
    data
  })
}
// 查询溃坝预报断面列表
export async function getDbfSectionsList(params) {
  return gstyRequest.get({
    url: '/model/configure/params/dbf/getDbfSections',
    showLoading: true,
    params
  })
}
// 查询溃坝属性列表
export async function getDbfSectionAttrList(params) {
  return gstyRequest.get({
    url: '/model/configure/params/dbf/getDbfSectionAttr',
    showLoading: true,
    params
  })
}
// 查询溃坝预报断面成果服务
export async function getDbfSectionResultService(params) {
  return gstyRequest.get({
    url: '/model/configure/params/dbf/getDbfSectionResultService',
    showLoading: true,
    params
  })
}
// 查询溃坝预报断面成果
export async function getDbfSectionResult(params) {
  return gstyRequest.get({
    url: '/model/configure/params/dbf/getDbfSectionResult',
    showLoading: true,
    params
  })
}
//时空变源=============
//查询时空变源计算单元
export async function getSkbyCalUnits(params) {
  return gstyRequest.get({
    url: '/model/configure/params/skby/calUnits',
    showLoading: true,
    params
  })
}
// 查询计算单元对应的预报断面
export async function getSkbyCalUnitSections(params) {
  return gstyRequest.get({
    url: '/model/configure/params/skby/calUnitSections',
    showLoading: true,
    params
  })
}
// 查询计算单元对应的水源信息
export async function getSkbyCalUnitSources(params) {
  return gstyRequest.get({
    url: '/model/configure/params/skby/calUnitSources',
    showLoading: true,
    params
  })
}
//查询计算单元小流域
export async function getSkbyWatas(params) {
  return gstyRequest.get({
    url: '/model/configure/params/skby/watas',
    showLoading: true,
    params
  })
}
//查询计算单元雨量站列表
export async function getSkbyCalUnitRainSites(params) {
  return gstyRequest.get({
    url: '/model/configure/params/skby/calUnitRainSites',
    showLoading: true,
    params
  })
}
//查询时空变源参数信息
export async function getSkbyParams(params) {
  return gstyRequest.get({
    url: '/model/configure/params/skby/params',
    showLoading: true,
    params
  })
}

//添加计算单元小流域编码
export async function setSkbyAddWatas(data) {
  return gstyRequest.post({
    url: '/model/configure/params/skby/addWatas',
    showLoading: true,
    data
  })
}

//时空变源参数方案下拉框绑定
export async function getSkbyParamSchemes(params) {
  return gstyRequest.get({
    url: '/model/configure/params/skby/paramSchemes',
    showLoading: true,
    params
  })
}
//删除计算单元小流域雨量站
export async function setSkbyDelRainSites(data) {
  return gstyRequest.post({
    url: '/model/configure/params/skby/deleteRainSites',
    showLoading: true,
    data
  })
}

//时空变源方案配置保存
export async function saveSkbyConfig(data) {
  return gstyRequest.post({
    url: '/model/configure/params/skby/save',
    showLoading: true,
    data
  })
}
//修改新安江雨量站权重
export async function updateXajRainPw(data) {
  return gstyRequest.post({
    url: '/model/configure/params/xaj/modifyRainPw',
    showLoading: true,
    data
  })
}
//修改时空变源雨量站权重
export async function updateSkbyRainPw(data) {
  return gstyRequest.post({
    url: '/model/configure/params/skby/modifyRainPw',

    showLoading: true,
    data
  })
}
//查询水库信息
export async function getResvResvs(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/getResvs',
    showLoading: true,
    params
  })
}
//查询库群调度库群站点
export async function getRangeSections(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/getRangeSections',
    showLoading: true,
    params
  })
}
// // 查询预报断面基础信息
export async function getForecastSectionInfo(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/forecastSectionInfo',
    showLoading: true,
    params
  })
}
//查询调度规程方案
export async function getRegsSchemes(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/regs/regsSchemes',
    showLoading: true,
    params
  })
}
// 查询调度规程内容
export async function getRegsRegsRules(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/regs/regsRules',
    showLoading: true,
    params
  })
}
// 查询优化调度方案
export async function getOptimSchemes(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/optim/optimSchemes',
    showLoading: true,
    params
  })
}
// 查询优化调度参数
export async function getOptimParams(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/optim/optimParams',
    showLoading: true,
    params
  })
}
// 水动力分区列表
export async function getZoneList(params) {
  return gstyRequest.get({
    url: '/model/configure/params/ifms/zoneList',
    showLoading: true,
    params
  })
}
// 水动力建模工程
export async function getProjectList(params) {
  return gstyRequest.get({
    url: '/model/configure/params/ifms/engrList',
    showLoading: true,
    params
  })
}
// 水动力边界条件列表
export async function getBoundList(params) {
  return gstyRequest.get({
    url: '/model/configure/params/ifms/boundList',
    showLoading: true,
    params
  })
}
// 水动力参数配置方案列表
export async function getParamsSchemeList(params) {
  return gstyRequest.get({
    url: '/model/configure/params/ifms/paramsSchemeList',
    showLoading: true,
    params
  })
}
// AI洪水断面信息表
// export async function getFloodSectionsList(params) {
//   return gstyRequest.get({
//     url: '/model/configure/params/flood/ai/floodSectionsList',
//     showLoading: true,
//     params
//   })
// }
// AI水库调度
export async function getReservoirSectionsList(params) {
  return gstyRequest.get({
    url: '/model/configure/params/reservoir/ai/reservoirSectionsList',
    showLoading: true,
    params
  })
}
// 查询ai调度模型参数表
export async function getReservoirOptimsList(params) {
  return gstyRequest.get({
    url: '/model/configure/params/reservoir/ai/reservoirOptimsList',
    showLoading: true,
    params
  })
}
// 查询库群信息
export async function getRanges(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/getRanges',
    showLoading: true,
    params
  })
}
// 查询联合调度优化参数
export async function getRangesOptims(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/getRangesOptims',
    showLoading: true,
    params
  })
}
// 新安江添加验证方案
export async function postXajAdd(data) {
  return gstyRequest.post({
    url: '/model/verify/xaj/add',
    showLoading: true,
    data
  })
}
// 新安江添加场次
export async function addXajCount(data) {
  return gstyRequest.post({
    url: '/model/verify/xaj/addCC',
    showLoading: true,
    data
  })
}
// 时空变源添加验证方案
export async function postSkbyAdd(data) {
  return gstyRequest.post({
    url: '/model/verify/skby/add',
    showLoading: true,
    data
  })
}
// 时空变源添加场次
export async function addSkbyCount(data) {
  return gstyRequest.post({
    url: '/model/verify/skby/addCC',
    showLoading: true,
    data
  })
}
// 新安江验证计算
export async function xajCalculate(data) {
  return gstyRequest.post({
    url: '/model/verify/xaj/calculate',
    showLoading: true,
    data
  })
}
// 时空变源验证计算
export async function skbyCalculate(data) {
  return gstyRequest.post({
    url: '/model/verify/skby/calculate',
    showLoading: true,
    data
  })
}
// 查询AI洪水方案信息列表
export async function getFloodSchemeList(params) {
  return gstyRequest.get({
    url: '/model/configure/params/flood/ai/floodSchemeList',
    showLoading: true,
    params
  })
}
// 查询河道断面信息
export async function getIfmsList(params) {
  return gstyRequest.get({
    url: '/model/configure/params/ifms/riverSectionList',
    showLoading: true,
    params
  })
}
// 查看时空变源-流域参数
export async function getParamsWata(params) {
  return gstyRequest.get({
    url: '/model/configure/params/skby/paramsWata',
    showLoading: true,
    params
  })
}
// 查看时空变源-河道参数
export async function getParamsRiver(params) {
  return gstyRequest.get({
    url: '/model/configure/params/skby/paramsRiver',
    showLoading: true,
    params
  })
}
// 查看时空变源-运动波参数
export async function getParamsNofpl(params) {
  return gstyRequest.get({
    url: '/model/configure/params/skby/paramsNofpl',
    showLoading: true,
    params
  })
}
// 查看时空变源-地下水库参数
export async function getParamsNgw(params) {
  return gstyRequest.get({
    url: '/model/configure/params/skby/paramsNgw',
    showLoading: true,
    params
  })
}
//上传模型参数文件
export async function uploadSkby(data) {
  return gstyRequest.post({
    url: '/resources/skby/upload',
    showLoading: true,
    data
  })
}
// 保存时空变源参数方案\
export async function saveParamsScheme(data) {
  return gstyRequest.post({
    url: '/model/configure/params/skby/saveParamsScheme',
    showLoading: true,
    data
  })
}
// 保存时空变源方案模型\
export async function saveParams(data) {
  return gstyRequest.post({
    url: '/model/configure/params/skby/saveParams',
    showLoading: true,
    data
  })
}
//新安江参数方案保存
export async function saveXajParamsScheme(data) {
  return gstyRequest.post({
    url: '/model/configure/params/xaj/saveParamsScheme',
    showLoading: true,
    data
  })
}
//保存新安江参数
export async function saveXajParams(data) {
  return gstyRequest.post({
    url: '/model/configure/params/xaj/saveParams',
    showLoading: true,
    data
  })
}

//修改保存规程方案
export async function saveRegsRulesSchemes(data) {
  return gstyRequest.post({
    url: '/model/configure/params/resv/regs/saveRegsRulesSchemes',
    showLoading: true,
    data
  })
}
//修改保存优化方案
export async function saveOptimSchemes(data) {
  return gstyRequest.post({
    url: '/model/configure/params/resv/optim/saveOptimSchemes',
    showLoading: true,
    data
  })
}
//上传规程
export async function uploadResvRegsRules(data) {
  return gstyRequest.post({
    url: '/model/configure/params/resv/regs/uploadResvRegsRules',
    showLoading: true,
    data
  })
}
//上传优化方案
export async function uploadResvOptimParams(data) {
  return gstyRequest.post({
    url: '/model/configure/params/resv/optim/uploadResvOptimParams',
    showLoading: true,
    data
  })
}
//上传水库参数文件
export async function uploadResvParams(data) {
  return gstyRequest.post({
    url: '/model/configure/params/resv/uploadResvParams',
    showLoading: true,
    data
  })
}
//
//查询联合调度参数信息
export async function getJointParamsInfos(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/joint/getJointParamsInfos',
    showLoading: true,
    params
  })
}
// 保存联合调度区间信息
export async function saveJointRange(data) {
  return gstyRequest.post({
    url: '/model/configure/params/resv/joint/saveJointRange',
    showLoading: true,
    data
  })
}
//删除联合调度区间
export async function deleteJointRange(data) {
  return gstyRequest.post({
    url: '/model/configure/params/resv/joint/deleteJointRange',
    showLoading: true,
    data
  })
}
//上传水库联合调度参数文件
export async function uploadResvJointParams(data) {
  return gstyRequest.post({
    url: '/model/configure/params/resv/joint/uploadResvJointParams',
    showLoading: true,
    data
  })
}
//查询时空变源参数-壤中流参数
export async function paramsNssr(params) {
  return gstyRequest.get({
    url: '/model/configure/params/skby/paramsNssr',
    showLoading: true,
    params
  })
}
//修改时空变源参数-流域参数
export async function modifyParamsWata(data) {
  return gstyRequest.post({
    url: '/model/configure/params/skby/modifyParamsWata',
    showLoading: true,
    data
  })
}
//修改时空变源参数-河道参数
export async function modifyParamsRiver(data) {
  return gstyRequest.post({
    url: '/model/configure/params/skby/modifyParamsRiver',
    showLoading: true,
    data
  })
}
//修改时空变源参数-运动波参数
export async function modifyParamsNofpl(data) {
  return gstyRequest.post({
    url: '/model/configure/params/skby/modifyParamsNofpl',
    showLoading: true,
    data
  })
}
//修改时空变源参数-地下水库参数
export async function modifyParamsNgw(data) {
  return gstyRequest.post({
    url: '/model/configure/params/skby/modifyParamsNgw',
    showLoading: true,
    data
  })
}
//修改时空变源参数-壤中流参数
export async function modifyParamsNssr(data) {
  return gstyRequest.post({
    url: '/model/configure/params/skby/modifyParamsNssr',
    showLoading: true,
    data
  })
}
// Ai洪水断面信息表
export async function getFloodSectionsList(params) {
  return gstyRequest.get({
    url: '/model/configure/params/flood/ai/floodSectionsList',
    showLoading: true,
    params
  })
}
// 查询API模型衰减系数
export async function getApiK(params) {
  return gstyRequest.get({
    url: '/model/configure/params/api/getApiK',
    showLoading: true,
    params
  })
}
// 查询API模型最大初损
export async function getApiIM(params) {
  return gstyRequest.get({
    url: '/model/configure/params/api/getApiIM',
    showLoading: true,
    params
  })
}
//保存API方案
export async function saveApiScheme(data) {
  return gstyRequest.post({
    url: '/model/configure/params/api/saveApiScheme',
    showLoading: true,
    data
  })
}
//查看API模型方案
export async function getApiSchemes(params) {
  return gstyRequest.get({
    url: '/model/configure/params/api/getApiSchemes',
    showLoading: true,
    params
  })
}
//删除API模型方案
export async function deleteApiScheme(data) {
  return gstyRequest.post({
    url: '/model/configure/params/api/deleteApiScheme',
    showLoading: true,
    data
  })
}
//查询API模型1小时单位线
export async function getApiUnitLines(params) {
  return gstyRequest.get({
    url: '/model/configure/params/api/getApiUnitLines',
    showLoading: true,
    params
  })
}
//查询API模型P-Pa-R 线
export async function getApiP_PaRLine(params) {
  return gstyRequest.get({
    url: '/model/configure/params/api/getApiP_PaRLine',
    showLoading: true,
    params
  })
}
//查询API模型P+Pa-R 线
export async function getApiPPaRLine(params) {
  return gstyRequest.get({
    url: '/model/configure/params/api/getApiPPaRLine',
    showLoading: true,
    params
  })
}
//模型管理 ai降雨预报模型配置 查询预报雨量站信息
export async function getAiStationInfo(params) {
  return gstyRequest.get({
    url: '/rainfall/station',
    showLoading: true,
    params
  })
}
//模型管理 ai降雨预报模型配置 查询降雨信息参数文件名
export async function getAiFilename(params) {
  return gstyRequest.get({
    url: '/rainfall/filename',
    showLoading: true,
    params
  })
}
//上传新安江参数文件
export async function uploadXajParamsFile(data) {
  return gstyRequest.post({
    url: '/model/configure/params/xaj/uploadXajParamsFile',
    showLoading: true,
    data
  })
}
//上传新安江参数保存
export async function uploadXajParamsSave(data) {
  return gstyRequest.post({
    url: '/model/configure/params/xaj/uploadXajParamsSave',
    showLoading: true,
    data
  })
}
